fix(sabr): use the page-native BotGuard attestation context - #86
Open
Priveetee wants to merge 1 commit into
Open
fix(sabr): use the page-native BotGuard attestation context#86Priveetee wants to merge 1 commit into
Priveetee wants to merge 1 commit into
Conversation
Owner
|
👍👍👍it helps a lot. I'll check it later :) |
This was referenced Aug 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PipePipe was fetching its BotGuard challenge from
/youtubei/v1/att/get. ForWEB/MWEB sessions affected by YouTube's current verification, that challenge
can still produce PO tokens, but SABR rejects the video-bound token with status
2/3 because the snapshot does not contain the matching page context.
This change:
agent and credentials;
window.ytAtN(...)challenge andEVENT_IDfrom thesame response;
window.yt.config_.EVENT_IDbefore BotGuard produces its snapshot;The homepage itself is not loaded in the WebView. Only the extracted
attestation data is passed to the existing isolated runtime. The GenerateIT,
minter and Extractor flows are unchanged.
Validation
I first tested one variable at a time with the same page-native challenge:
EVENT_ID: status 2 around 60 seconds;EVENT_ID: status 1 beyond 65 seconds.I then tested the automatic production path on Android 8, 10, 14 and 16. The
endurance run also completed 97 consecutive playlist items beyond 65 seconds,
all with status 1 and without an identity rotation, before I stopped it.
./gradlew :app:testDebugUnitTest :app:assembleDebug./gradlew :app:lintDebuggit diff --checkRelated to InfinityLoop1308/PipePipe#2820.
Thanks @LuanRT for pointing us to LuanRT/BgUtils#44 :)